package day17.Enum.LX01;

public enum Season {
//    如果枚举类中有抽象方法,那么枚举项中必须全部重写
    SPRING("春"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    }, SUMMER("夏"){
        @Override
        public void show() {

        }
    }, AUTUMN("秋"){
        @Override
        public void show() {

        }
    }, WINTER("冬"){
        @Override
        public void show() {

        }
    };
    public String name;

//    Season() {
//    }

    Season(String name) {
        this.name = name;
    }
    public abstract void show();
}
